﻿
                                  <div class="box border primary">
											<div class="box-title">
												<h4><i class="fa fa-bars"></i>Form controls</h4>
												<div class="tools hidden-xs">
													<a href="#box-config" data-toggle="modal" class="config">
														<i class="fa fa-cog"></i>
													</a>
													<a href="javascript:;" class="reload">
														<i class="fa fa-refresh"></i>
													</a>
													<a href="javascript:;" class="collapse">
														<i class="fa fa-chevron-up"></i>
													</a>
													<a href="javascript:;" class="remove">
														<i class="fa fa-times"></i>
													</a>
												</div>
											</div>
											<div class="box-body big">
												<h3 class="form-title">新闻添加</h3>
												<form method="post" action="" class="form-horizontal" role="form" enctype="multipart/form-data">
												  <div class="form-group">
													<label class="col-sm-3 control-label">标题</label>
													<div class="col-sm-9">
													  <input name="title" class="form-control" placeholder="请插入标题" type="text" value="<?php echo $date['title'];?>">
													</div>
												  </div>
												  <div class="form-group">
													<label class="col-sm-3 control-label">内容</label>
													<div class="col-sm-9">
													 <textarea name="content" class="form-control" rows="3"><?php echo $date['content'];?></textarea>
													</div>
												  </div>
												  <div class="form-group">
													<label class="col-sm-3 control-label">类型</label>
													<div class="col-sm-9">
													 <input name="type" class="form-control" value="<?php echo $date['type'];?>">
													</div>
												  </div>

                                        <div class="form-group">
											 <label class="col-md-3 control-label">图片</label>
											 <div class="col-md-8">
												<div class="fileupload fileupload-new" data-provides="fileupload">
												<div class="input-group">
													<div class="form-control uneditable-input"><i class="fa fa-file fileupload-exists"></i>
														<span class="fileupload-preview"></span>
													</div>
													<div class="input-group-btn">
														<a class="btn btn-default btn-file">
															<span class="fileupload-new">Select file</span>
															<span class="fileupload-exists">Change</span>
															<input  multiple="multiple" name="myfile" class="file-input" type="file"></a>
															
													</div>
													
												</div><?php if(!empty($date['img'])){ echo "<img width=50 height=50 src=".$date['img'].">";} else{ echo '暂无图片';} ?>
											</div>
											 </div>
										  </div>
                                                <div class="col-sm-offset-3 col-sm-13">
                                                 <button type="submit" class="btn btn-success">提交</button>
													</div>
												 </form>
											</div>
										</div>
				